Page({
  data: {
    list: []
  },
  onLoad() {
    this.getVisitor()
  },
  async getVisitor() {
    let res = await wx.http.get('/visitor')
    this.setData({
      list: res.rows
    })
  },
  goPassport(event) {
    wx.navigateTo({
      url: '/visitor_pkg/pages/passport/index?id=' + event.mark.id,
    })
  },
})
